<?php /* Smarty version 2.6.19, created on 2008-07-18 22:05:42
         compiled from user/registration.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'user/registration.tpl', 1, false),array('function', 'html_select_date', 'user/registration.tpl', 35, false),array('modifier', 'escape', 'user/registration.tpl', 20, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "index.conf"), $this);?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/doctype.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<head>
    <title>Registration</title>
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/include.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>

<body>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/logo.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if ($this->_tpl_vars['registration']): ?>
    Congratulations! You are successfully registed. You can upload your photo rigth  <a href="/user/upload/">now</a> or later, from your <a href="/">accont</a>.
<?php else: ?>
	<form action="" method="post">
	    <div align="left"><strong><?php echo $this->_tpl_vars['error']['empty']; ?>
</strong></div>
	    Username:<sup>*</sup><div><strong><?php echo $this->_tpl_vars['error']['username']; ?>
</strong></div>
	    <input type="text" name="form[username]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['username'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    Password:<sup>*</sup><div><strong><?php echo $this->_tpl_vars['error']['password']; ?>
</strong></div>
	    <input type="password" name="form[password]" value="" /><br />
	     (should be more than 5 characters long)<br />
	    Password again:<sup>*</sup><div></div>
	    <input type="password" name="form[password_again]" value="" /><br />
	    E-mail:<sup>*</sup><div><strong><?php echo $this->_tpl_vars['error']['mail']; ?>
</strong></div>
	    <input type="text" name="form[mail]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['mail'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    Gender:<sup>*</sup><div></div>
	        <select name="form[sex]">
              <!--  <option value="" />Your gender -->
                <option value="male" <?php if ($this->_tpl_vars['form']['sex'] == 'male'): ?>selected<?php endif; ?> />Male
                <option value="female" <?php if ($this->_tpl_vars['form']['sex'] == 'female'): ?>selected<?php endif; ?> />Female
            </select><br />
	    Age:<sup>*</sup><div><strong><?php echo $this->_tpl_vars['error']['born']; ?>
</strong></div>
	    <?php echo smarty_function_html_select_date(array('selected_month' => ($this->_tpl_vars['month']),'selected_year' => ($this->_tpl_vars['year']),'selected_day' => ($this->_tpl_vars['day']),'start_year' => "-60",'end_year' => "-8"), $this);?>
<br />
	    Phone number:<sup>*</sup><div><strong><?php echo $this->_tpl_vars['error']['number']; ?>
</strong></div>
	    <input type="text" name="form[number]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['number'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    For example: 34564564545 <br />
	    Country/region:<sup>*</sup><div></div>
	    <input type="text" name="form[country]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['country'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    City/other country:<sup>*</sup><div></div>
	    <input type="text" name="form[city]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['city'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    About yourself:<div></div>
	    <input type="text" name="form[description]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /><br />
	    <input type="submit" name="submit" value="Sign up" />
	</form>
<?php endif; ?>

</body>

</html>